package com.sc.nft.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.google.common.collect.Lists;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.List;

@AllArgsConstructor
@Getter
public enum DaoInfoEnum {

    META_DAO(1,6l,"玛特DAO"),
    META_UNIVERSE_OFFICIAL(2,7l,"玛特宇宙官方"),


    ;
    @EnumValue
    private int code;
    private long id;
    private String description;


    public static List<Long> getAll() {
        List<Long> list = Lists.newArrayList();
        for (DaoInfoEnum value : DaoInfoEnum.values()) {
            list.add(value.getId());
        }
        return list;
    }
}
